import Vue from 'vue'
import App from '@/App.vue'
import router from '@/router'
import store from '@/store'
// import * as echarts from 'echarts'
import axios from 'axios'
import SocketService from '@/utils/socket_service'
//获取实例对象方法 get Instance 对服务器端进行websocket连接
SocketService.Instance.connect()
//将SocketService挂载到vue 实例对象中 其他组件调用用this.$socket
Vue.prototype.$socket = SocketService.Instance
//引入全局样式
import '@/assets/css/golbal.less'
//引入字体文件
import '@/assets/font/iconfont.css'
//请求的根目录的配置
axios.defaults.baseURL = 'http://127.0.0.1:8888/api/'
Vue.config.productionTip = false
//挂载原型对象
Vue.prototype.$echarts = echarts
Vue.prototype.$http = axios

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
